package thread;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏西西
 * Date: 2023-09-01
 * Time: 21:19
 */
class MySingletonLazy{
    private volatile static MySingletonLazy instance = null;
    public static MySingletonLazy getInstance(){
        if(instance == null){
            synchronized (MySingletonLazy.class) {
                if(instance == null){
                    instance = new MySingletonLazy();
                }
            }
        }
        return instance;
    }
    private MySingletonLazy(){
    }
}
public class ThreadD20 {
}
